<template>
  <div>
      <el-tree 
        :data="allMentList" 
        @node-click="handleNodeClick" 
        highlight-current>
      </el-tree>
  </div>
</template>

<script>
  export default {
    props:{
      allMentList:{
        type:Array
      }
    },
    data() {
      return {
        
      };
    },
    methods: {
      handleNodeClick(data) {
        this.$emit('getMenuId',data.PermissionID)
      }
    }
  };
</script>

<style lang="scss" scoped>
/deep/.el-tree-node.is-current >.el-tree-node__content{
  background-color: #50bfff;
}
</style>